package com.example.utils;

public class Const {
    //redis中的token黑名单
    public static final String JWT_BLACK_LIST = "jwt:blacklist:";

    //redis中的限流黑名单
    public static final String FLOW_LIMIT_BLACK_LIST = "flow:block:";
    //限流计数器
    public static final String FLOW_LIMIT_COUNTER = "flow:counter:";

    //自定义过滤器的优先级（要比SpringSecurity的都要高）
    public final static int ORDER_FLOW_LIMIT = -101;
    public final static int ORDER_CORS = -102;

    //邮件验证码
    public final static String VERIFY_EMAIL_LIMIT = "verify:email:limit:";
    public final static String VERIFY_EMAIL_DATA = "verify:email:data:";

    //用户角色
    public final static String ROLE_DEFAULT = "user";


}
